<script setup>
import child from '@/components/09_composition_api_props_emits_child.vue'

//回调方法handleClick
let handleClick = (data) => {
  console.log(data);
}

</script>

<template>
  <div>
    <h2>09_composition_api_props_emits.vue</h2>

    <!--    定义回调方法custom-click-->
    <child :count="0" message="hello world" @custom-click="handleClick"></child>
  </div>
</template>

<style lang="scss" scoped>

</style>